package com.lifeng.controller;

import com.lifeng.bean.UserBean;
import com.lifeng.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by lifeng on 2019/10/23.
 */
@RestController
public class UserController {
    @Resource
    private UserService userService;

    @RequestMapping("/select")
    public Object select(String id){
        UserBean userBean = userService.getById(id);
        return userBean;
    }

}
